SCFormFieldValidator = sCore.makeClass({
    init : function() {
        $.extend(this,arguments[0]);
    },
    $ : function() {
        return this.parent.$();
    },
    validate : function() {
        throw new Error("This method should be overrided");
    },
    getErrorMessage : function() {
        console.debug(this.error);
        console.debug(this);
        return this.error;
    },
    updateErrorlabel : function() {
        $("[data-error-label='"+this.parent.getControlFullName()+"']").html(this.getErrorMessage());
    }
    
});
FormFieldValidator = sCore.makeClass(SCFormFieldValidator,{});